cmake_minimum_required(VERSION 3.5)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5Multimedia)

qt5_add_resources(qrc_FILES images.qrc)

FILE(GLOB SRC_WIDGETS_FILES
        ${CMAKE_CURRENT_SOURCE_DIR}/*.h
        ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/*.ui
)

set(MyMusic_SRC
  ${SRC_WIDGETS_FILES}
)

add_executable(MyMusic
  ${SRC_WIDGETS_FILES}
  ${qrc_FILES}
)

target_link_libraries(MyMusic PRIVATE Qt5::Widgets Qt5::Multimedia)
